package cn.mldn.jedis;

import redis.clients.jedis.Jedis;


/***
 * 
 * 设置 字符型  数据  
 * */
public class BaseDataDemo {
	public static final String REDIS_HOST="";
	public static final int REDIS_PORT=6379;
	public static void main(String[] args) {
		Jedis jedis=new Jedis(REDIS_HOST,REDIS_PORT);
		
		jedis.set("user-mldn", "hello");
		jedis.set("user-admin", "happy");
		
		System.out.println(jedis.get("user-mldn"));
		jedis.close();  //返回  pong  则连接成功
	}
}
